package com.sice;


@FunctionalInterface
interface NoParameter{
    int test(int a);
    public static void test1(){

    }
}

public class Test {
    public static void main(String[] args) {
        int a=0;
        NoParameter noParameter=new NoParameter() {
            @Override
            public int test(int a) {
                System.out.println("hello");
                return a;
            }
        };

        noParameter.test(a);
        NoParameter noParameter1=(b)->{
            System.out.println("hello");
            return b;
        };

        System.out.println(noParameter.test(20));
        System.out.println(noParameter1.test(10));
    }
    public static void main1(String[] args) {
        try {
            Class clazz=Class.forName("com.size.Student");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
